home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_hylafax.idb / usr / freeware / catman / u_man / cat1 / faxrcvd.Z / faxrcvd
Text File  |  2002-07-08  |  4KB  |  97 lines

  1. FAXRCVD(${MANNUM1_8})                FAXRCVD(${MANNUM1_8})
  2.  
  3.  
  4.  
  5. NNAAMMEE
  6.        faxrcvd - _H_y_l_a_F_A_X notification script for received facsim
  7.        ile
  8.  
  9. SSYYNNOOPPSSIISS
  10.        $${{SSPPOOOOLL}}//bbiinn//ffaaxxrrccvvdd _q_f_i_l_e _d_e_v_i_d    _c_o_m_m_i_d _e_r_r_o_r_-_m_s_g  _c_i_d_n_u_m_
  11.        _b_e_r _c_i_d_n_a_m_e
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.        bbiinn//ffaaxxrrccvvdd is the command script invoked by the    facsimile
  15.        server whenever a  facsimile  is     received.   The  default
  16.        script    sends  electronic  mail     to  the  _F_a_x_M_a_s_t_e_r  user
  17.        describing the content of the facsimile and  other  useful
  18.        information such    as the time spent receiving the    document.
  19.        The arguments are:
  20.  
  21.        qqffiillee     the pathname of the received TIFF file     relative
  22.          to the    root of    the spooling hierarchy.
  23.  
  24.        ddeevviidd     the  modem  device  on     which    the facsimile was
  25.          received.
  26.  
  27.        ccoommmmiidd     the communication  identifier    for  the  inbound
  28.          call.
  29.  
  30.        eerrrroorr--mmssgg an  error  message  that is non-null if an error
  31.          was encountered during    the receive operation.
  32.  
  33.        cciiddnnuummbbeerr the value of CCIIDDNNuummbbeerr    when using QQuuaalliiffyyCCIIDD
  34.  
  35.        cciiddnnaammee     the value of CCIIDDNNaammee when using QQuuaalliiffyyCCIIDD
  36.  
  37. NNOOTTEESS
  38.        This script can route facsimile directly    to  the     intended
  39.        receipient.   To    do this    create a shell script eettcc//FFaaxxDDiiss
  40.        ppaattcchh in     the  spooling    area  that  sets  _S_E_N_D_T_O  to  the
  41.        receiver's electronic mail address.  For    example,
  42.  
  43.        case "$SENDER" in
  44.        *1*510*526*1212*) SENDTO=sam;;           # Sam's test rig    in Berkeley
  45.        *1*415*390*1212*) SENDTO=raster@asd;;   # 7L Xerox room,    used for scanning
  46.        *5107811212)     SENDTO=peebles@mti;;  # stuff from home
  47.        esac
  48.        case "$DEVICE" in
  49.        ttyS1)         SENDTO=john;;           # all faxes received on ttyS1
  50.        ttyLT0)         SENDTO=mary@home;;    # all faxes received on ttyLT0
  51.        esac
  52.        case "$CIDNUMBER" in
  53.        435*)        SENDTO=lee;    FILETYPE=pdf;; # all faxes from    area code 435
  54.        5059627777)  SENDTO=amy;    FILETYPE=tif;; # Amy wants faxes in TIFF
  55.        esac
  56.  
  57.        Note  that  you    must match any embedded    white space.  The
  58.        facsimile will be sent as a MIME-encoded    PostScript  docu
  59.        ment as default.
  60.  
  61.        _C_I_D_N_A_M_E
  62.           is equivalent to CCIIDDNNaammee above.
  63.  
  64.        _C_I_D_N_U_M_B_E_R
  65.           is equivalent to CCIIDDNNuummbbeerr above.
  66.  
  67.        _D_E_V_I_C_E is equivalent to ddeevviiccee above.
  68.  
  69.        _F_I_L_E_T_Y_P_E
  70.           controls    the  filetype  of  the    image attachment.
  71.           Current filetype options are ``ps'',  ``tif'',  and
  72.           ``pdf''.
  73.  
  74.        _M_S_G    is equivalent to eerrrroorr--mmssgg above.
  75.  
  76.        _S_E_N_D_E_R is the received TSI of the fax sender.
  77.  
  78.        _S_E_N_D_T_O controls    the recipient of the received fax notifi
  79.           cation.  It is given as an e-mail    address.
  80.  
  81.        Other shell variables are available.  Consult the  faxrcvd
  82.        script directly.
  83.  
  84. FFIILLEESS
  85.        ${SPOOL}          spooling area
  86.        ${SBIN}/faxinfo      for printing information about the facsimile
  87.        ${TIFFBIN}/fax2ps  for converting TIFF to PostScript
  88.        ${SENDMAIL}      for delivering mail
  89.  
  90. SSEEEE AALLSSOO
  91.        _f_a_x_d(${MANNUM1_8}),        _h_y_l_a_f_a_x_-_s_e_r_v_e_r(${MANNUM4_5}),
  92.        _r_e_c_v_q(${MANNUM4_5})
  93.  
  94.  
  95.  
  96.                May 28, 2001        FAXRCVD(${MANNUM1_8})
  97.